<?php

class MsgModel extends CommonModel {
    protected $_validate = array(
        array('subject', 'require', '标题必须'),
        array('content', 'require', '内容必须'),
    );
    protected $_auto = array(
        array('status', 1, self::MODEL_INSERT, 'string'),
        array('isRead', 0, self::MODEL_INSERT, 'string'),
        array('isDel', 0, self::MODEL_INSERT, 'string'),
        array('cTime', 'time', self::MODEL_INSERT, 'function'),
        array('uTime', 'time', self::MODEL_UPDATE, 'function'),
    );

}

?>